package cn.lut;


import cn.lut.ba02.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @user:dell
 * @date:2020年10月27 19:28
 */
public class Mytest04 {
    @Test
    public void test1(){
        String config="ba04/applicationContext.xml";
        ApplicationContext applicationContext= new ClassPathXmlApplicationContext(config);
        cn.lut.ba04.Student myStudent = (cn.lut.ba04.Student) applicationContext.getBean("myStudent");
        System.out.println(myStudent);
    }
}
